﻿using System;
using Headsight.BPMN2WF.BPMN.Schemas;

namespace Headsight.BPMN2WF.Testing.TestObjCtors
{
    public class tProcessCtorStub : ItProcessCtor
    {
        private readonly Action<tFlowElement[]> _withDelegate;

        public tProcessCtorStub(Action<tFlowElement[]> func)
        {
            _withDelegate = func;
        }

        public tProcess Create()
        {
            return null;
        }

        public tProcessCtor With(params tFlowElement[] tFlowElements)
        {
            _withDelegate(tFlowElements);

            return null;
        }
    }
}